package com.jhgk.jhcee.system.enums;

import com.jhgk.jhcee.common.enums.BasisResultTemplate;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/11 15:51.
 */
public enum SystemResultEnum implements BasisResultTemplate {
    PARAM_MANDATORY_ONE(4001,"参数必填一个","message"),
    NOT_FOUND(1,"未找到","null"),
    UPDATE_USER_ROLE_PARAM_NULL(1,"更新用户角色关联参数为空","param"),
    UPDATE_ROLE_USER_PARAM_NULL(1,"更新角色用户关联参数为空","param")
    ;
    private long code;
    private String message;
    private String type;

    SystemResultEnum(long code,String message,String type) {
        this.code = code;
        this.message = message;
        this.type = type;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getType() {
        return type;
    }
}
